class CreateResults < ActiveRecord::Migration
  def change
    create_table :results do |t|
      t.belongs_to :user, index: true
      t.string :number
      t.string :matched_words, array: true, default: []

      t.timestamps
    end

    add_index :results, :number
  end
end
